From a5f80565fbd6ea7041f9763861ddc0a1267fbc9e Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 13 Jan 2010 08:17:00 +0000 Subject: [PATCH] x86: minor cleanup to arch_memory_op() There's a function-wide variable rc, so no need to re-declare it in individual case handling blocks. Signed-off-by: Jan Beulich --- xen/arch/x86/mm.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/xen/arch/x86/mm.c b/xen/arch/x86/mm.c index 45653ec25f..5f457e6af4 100644 --- a/xen/arch/x86/mm.c +++ b/xen/arch/x86/mm.c @@ -4235,7 +4235,6 @@ long arch_memory_op(int op, XEN_GUEST_HANDLE(void) arg) struct xen_add_to_physmap xatp; unsigned long prev_mfn, mfn = 0, gpfn; struct domain *d; - int rc; if ( copy_from_guest(&xatp, arg, 1) ) return -EFAULT; @@ -4347,7 +4346,6 @@ long arch_memory_op(int op, XEN_GUEST_HANDLE(void) arg) { struct xen_foreign_memory_map fmap; struct domain *d; - int rc; if ( copy_from_guest(&fmap, arg, 1) ) return -EFAULT; @@ -4399,7 +4397,6 @@ long arch_memory_op(int op, XEN_GUEST_HANDLE(void) arg) struct memory_map_context ctxt; XEN_GUEST_HANDLE(e820entry_t) buffer; unsigned int i; - int rc; if ( !IS_PRIV(current->domain) ) return -EINVAL; -- 2.30.2